local slbhq = fk.CreateSkill {
  name = "slbhq",
  tags ={Skill.Limited},
}

Fk:loadTranslationTable{
  ["slbhq"] = "圣灵悲魂曲",
  [":slbhq"] = "限定技，出牌阶段你可以对全场的其他角色造成你伤害等同于你体力上限的伤害。",

  ["#slbhq"] = "圣灵悲魂曲：发动限定技，对所有其他角色造成等同于你体力上限的伤害！",

  ["$slbhq1"] = "感受圣灵的愤怒吧！",
  ["$slbhq2"] = "悲魂之曲，为汝奏响！",
}

slbhq:addEffect("active", {
  anim_type = "big",
  card_num = 0,
  target_num = 0,
 
  on_use = function(self, room, effect)
    local player = effect.from
    -- 标记技能已使用（限定技）
    
    
    -- 获取伤害值：等于使用者的体力上限
    local damageValue = player.maxHp
    
    -- 获取所有其他角色
    local tos = room:getOtherPlayers(player)
    room:doIndicate(player, tos)
    
    -- 对每个其他角色造成伤害
    for _, p in ipairs(tos) do
      if not p.dead then
        room:damage{
          from = player,
          to = p,
          damage = damageValue,
          skillName = slbhq.name,
        }
      end
    end
  end
})

return slbhq